package com.xjoyt.pay.operater.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.operater.auth.po.UserRole;
import com.xjoyt.pay.repository.Repository;

public interface UserRoleRepository extends Repository<UserRole> {

	@Query(" select a from UserRole a where a.user.id = ?1 ")
	List<UserRole> findAllByUserId(String userId);
}
